import request from "@/utils/request";

export function updatePeopleFacialPhoto(data) {
  return request({
    url: "record/personal/facial",
    method: "post",
    data: data,
  });
}

export function recordPerDetailsCaseHistories(data) {
  return request({
    url: "caseHistory/records/personal/histories",
    method: "post",
    data: data,
  });
}

// 个人档案
export function recordList() {
  return request({
    url: "record/personal/list",
    method: "get",
  });
}
export function recordAdd(data) {
  return request({
    url: "record/personal/add",
    method: "post",
    data: data,
  });
}
export function recordEdit(data) {
  return request({
    url: "record/personal/edit",
    method: "put",
    data: data,
  });
}
export function recordDetail(data) {
  return request({
    url: "record/personal/details",
    method: "post",
    data: data,
  });
}
//家庭档案
export function recordFamilyList() {
  return request({
    url: "record/family/list",
    method: "get",
  });
}
export function familyEdit(data) {
  return request({
    url: "record/family/edit",
    method: "post",
    data: data,
  });
}
//家庭档案Details
export function recordFamilyDetailsList(familycode) {
  return request({
    url: "record/family/details/list/" + familycode,
    method: "get",
  });
}
//组建家庭
// 移除成员
export function EsFamDel(data) {
  return request({
    url: "record/family/del",
    method: "put",
    data: data,
  });
}
// 审核
export function EsFamAuditing(data) {
  return request({
    url: "record/family/auditing",
    method: "post",
    data: data,
  });
}
// 组建家庭family/
export function EsFamily(data) {
  return request({
    url: "record/family/EsFamily",
    method: "put",
    data: data,
  });
}

// 添加成员
export function AddPeopleInFamily(data) {
  return request({
    url: "record/family/addPeopleInFamily",
    method: "put",
    data: data,
  });
}

//Excel导出
export function exportDataToExcel(data) {
  return request({
    url: "record/exportDataToExcel",
    method: "post",
    data: data,
  });
}
// 疾病记录
export function addDiseaseData(data) {
  return request({
    url: "diseaseHealth/addOne",
    method: "post",
    data: data,
  });
}
